<template>
  <div class="about-us-modal">
    <div class="about-modal-content">
      <span class="close-btn" @click="$emit('close')">&times;</span>
      <div class="about-img-wrap">
        <img class="about-img" src="../assets/image/bg1.jpg" alt="宠物与医生" />
      </div>
      <div class="about-desc">
        <h2 class="about-title">关于BUO宠物生活馆</h2>
        <p>
          BUO宠物生活馆致力于为您的宠宠物提供一站式优质服务。我们深知宠物是家庭的一份子，因此我们用心呵护每一位毛茸茸的伙伴。
        </p>
        <p>
          我们提供各类健康可爱的宠物、精选的宠物食品、时尚的宠物用品以及专业的宠物美容和护理服务。我们的团队配备经验丰富的宠物专家和爱好者，他们亦秉承专业和爱心，确保您的宠物得到最好的照顾。
        </p>
        <p>
          在BUO，我们不仅仅是销售宠物和用品，我们更希望构建一个充满爱与温度的宠物社区，让每一位宠物主人都能在这里找到归属感和支持。
        </p>
      </div>
    </div>
  </div>
</template>

<script setup>
// 无需额外逻辑
</script>

<style scoped>
.about-us-modal {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-modal-content {
  display: flex;
  gap: 36px;
  align-items: center; /* 让图片和内容上下居中对齐 */
  background: #fff;
  border-radius: 16px;
  padding: 38px 38px 32px 38px;
  max-width: 1100px;
  min-width: 340px;
  box-shadow: 0 4px 32px rgba(140, 38, 230, 0.13);
  position: relative;
}
.about-img-wrap {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 320px;
}
.about-img {
  width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 2px 12px #e0e0e0;
  background: #f6edff;
  display: block;
}
.close-btn {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 2rem;
  color: #222;
  cursor: pointer;
  z-index: 10;
  font-weight: bold;
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-btn:hover {
  background: #8d26e6;
  color: #fff;
}
.about-desc {
  background: #4e5ca7;
  color: #fff;
  border-radius: 10px;
  padding: 24px 28px 18px 28px;
  font-size: 1.08rem;
  line-height: 1.8;
  flex: 1;
  box-sizing: border-box;
  box-shadow: 0 2px 8px #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.about-desc p {
  margin: 0 0 14px 0;
}
.about-desc p:last-child {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .about-modal-content {
    flex-direction: column;
    gap: 18px;
    padding: 18px 4vw 18px 4vw;
    max-width: 98vw;
    min-width: 0;
    align-items: stretch;
  }
  .about-img-wrap {
    justify-content: center;
    min-height: unset;
  }
  .about-img {
    width: 100%;
    height: 160px;
  }
  .about-desc {
    padding: 16px 10px 12px 10px;
  }
  .close-btn {
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 1.6rem;
  }
}
</style>
